package com.example.gamept;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //这里要重新传入新的参数gameUI setContentView(R.layout.activity_main);
        GameUI gameUI = new GameUI(this);
        //直接传入view对象
        setContentView(gameUI);

    }
}